/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import DAO.*;
import DTO.*;
import java.awt.Desktop;
//import java.util.List;

import java.util.List;
import java.util.ArrayList;
//import java.util.Date;
//import java.util.regex.*;

import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

//import java.awt.event.*;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
//import java.sql.*;

//import java.awt.Graphics;
//import java.awt.Graphics2D;
//import java.awt.print.PageFormat;
//import java.awt.print.Printable;
//import java.awt.print.PrinterException;
//import java.awt.print.PrinterJob;
//import java.text.MessageFormat;
import java.util.HashMap;
import java.util.Map;

import java.util.logging.Level;
import java.util.logging.Logger;
//import javax.swing.DefaultComboBoxModel;
//import javax.swing.JDialog;
//import javax.swing.JFileChooser;
import javax.swing.JFrame;
//import javax.swing.JTable.PrintMode;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import net.sf.jasperreports.swing.JRViewer;

/**
 *
 * @author Luis Olave 10
 */
public class AprobacionGarantiaCdp extends javax.swing.JFrame{

    usuarioDTO user;
    garantiasDAO reg = new garantiasDAO();
    garantiaCdpOtrosDTO aproGaraCdp = new garantiaCdpOtrosDTO();
    
    /**
     * Creates new form AprobacionGarantiaCdp
     */
    
    
    
    public AprobacionGarantiaCdp(usuarioDTO user) {
        this.user = user;
        initComponents();
        cargarItemsComboBoxEstadoGarantia();
        pnlIngreseRutGarante.setVisible(false);
        pnlIngreseRutGarante1.setVisible(false);
        this.txtComentarioApro.enable(false);
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
    }
    
    private void cargarItemsComboBoxEstadoGarantia() {
        List<estadoGarantiaDTO> ListaGarantia = CCEstadoGarantia.listarItemEstado();
        if (ListaGarantia != null) {
            int size = ListaGarantia.size();
            for (int i = 0; i < size; i++) {
                this.cmbEstadoAprobCDP.addItem(ListaGarantia.get(i));
            }
        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        pnlDatosPersoGara = new javax.swing.JPanel();
        jPanel10 = new javax.swing.JPanel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        txtNombreGarAprobCDP = new javax.swing.JTextField();
        txtApellMatGarAprobCDP = new javax.swing.JTextField();
        txtApellPatAprobCDP = new javax.swing.JTextField();
        txtRutGarAprobCDP = new javax.swing.JTextField();
        jLabel39 = new javax.swing.JLabel();
        btnMenuAprobCDP = new javax.swing.JButton();
        pnlIngreseRutGarante = new javax.swing.JPanel();
        jLabel30 = new javax.swing.JLabel();
        txtNumAprobCDP = new javax.swing.JTextField();
        btnBuscarPorNumero = new javax.swing.JButton();
        chkNumAprobCDP = new javax.swing.JCheckBox();
        pnlIngreseRutGarante1 = new javax.swing.JPanel();
        jLabel31 = new javax.swing.JLabel();
        txtFolioAprobCDP = new javax.swing.JTextField();
        btnBuscarPorFolio = new javax.swing.JButton();
        chkBuscFolioAprobCDP = new javax.swing.JCheckBox();
        jPanel3 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        lblArchivo = new javax.swing.JLabel();
        btnExaminarAprobCDP = new javax.swing.JButton();
        jPanel14 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        txtFechUltTasAprobCDP = new javax.swing.JTextField();
        txtFechModiAprobCDP = new javax.swing.JTextField();
        txtMonedaAprobCDP = new javax.swing.JTextField();
        txtFechUltDebAprobCDP = new javax.swing.JTextField();
        txtFechCreaAprobCDP = new javax.swing.JTextField();
        txtSucursalAprobCDP = new javax.swing.JTextField();
        jPanel15 = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        txtFechExtAprobCDP = new javax.swing.JTextField();
        txtTpoGtiaAprobCDP = new javax.swing.JTextField();
        txtFechUltRevAprobCDP = new javax.swing.JTextField();
        txtFechUltCredAprobCDP = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        txtMontoInicialCDP = new javax.swing.JTextField();
        jPanel2 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        pnlDescripGarantia = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        txtDescripcionGarCDP = new javax.swing.JTextArea();
        lblDescripcion = new javax.swing.JLabel();
        jPanel7 = new javax.swing.JPanel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        lblEstadoActual = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        txtComentarioApro = new javax.swing.JTextArea();
        jPanel4 = new javax.swing.JPanel();
        jPanel13 = new javax.swing.JPanel();
        pnlEstadoGarantia1 = new javax.swing.JPanel();
        lblEstrado1 = new javax.swing.JLabel();
        cmbEstadoAprobCDP = new javax.swing.JComboBox();
        btnMenuPrincAprobCDP = new javax.swing.JButton();
        btnAceptar = new javax.swing.JButton();
        pnlDescripGarantia2 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        txtOtroComentarioAprobCDP2 = new javax.swing.JTextArea();
        lblDescripcion2 = new javax.swing.JLabel();
        jPanel11 = new javax.swing.JPanel();
        jPanel16 = new javax.swing.JPanel();
        jPanel17 = new javax.swing.JPanel();
        txtBuscarCDPImprimir = new javax.swing.JTextField();
        btnBuscarCDPImprimir = new javax.swing.JButton();
        jPanel18 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tbSalidaCDPImprimir = new javax.swing.JTable();
        btnCDPImprimir = new javax.swing.JButton();
        btnMenuPrincipalCDP = new javax.swing.JButton();
        btnExporAprobCDP = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("APROBACIÓN GARANTÍA CDP");
        setResizable(false);

        jLabel1.setFont(new java.awt.Font("Century Gothic", 1, 18)); // NOI18N
        jLabel1.setText("APROBACIÓN GARANTÍA CDP");

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE/logo.JPG"))); // NOI18N

        jTabbedPane1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N

        pnlDatosPersoGara.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DATOS PERSONALES GARANTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel36.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel36.setText("RUT");

        jLabel37.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel37.setText("APELLIDO PATERNO");

        jLabel40.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel40.setText("NOMBRE");

        txtNombreGarAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtNombreGarAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNombreGarAprobCDP.setEnabled(false);

        txtApellMatGarAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtApellMatGarAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellMatGarAprobCDP.setEnabled(false);

        txtApellPatAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtApellPatAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellPatAprobCDP.setEnabled(false);

        txtRutGarAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtRutGarAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtRutGarAprobCDP.setEnabled(false);

        jLabel39.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel39.setText("APELLIDO MATERNO");

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel37)
                    .addComponent(jLabel36))
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtRutGarAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtApellPatAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 101, Short.MAX_VALUE)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel39)
                    .addComponent(jLabel40))
                .addGap(28, 28, 28)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtNombreGarAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtApellMatGarAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(196, 196, 196))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(txtRutGarAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel40)
                    .addComponent(txtNombreGarAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel37)
                    .addComponent(txtApellPatAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtApellMatGarAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel39))
                .addContainerGap())
        );

        javax.swing.GroupLayout pnlDatosPersoGaraLayout = new javax.swing.GroupLayout(pnlDatosPersoGara);
        pnlDatosPersoGara.setLayout(pnlDatosPersoGaraLayout);
        pnlDatosPersoGaraLayout.setHorizontalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosPersoGaraLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        pnlDatosPersoGaraLayout.setVerticalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDatosPersoGaraLayout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        btnMenuAprobCDP.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuAprobCDP.setText(" << MENÚ PRINCIPAL");
        btnMenuAprobCDP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuAprobCDPActionPerformed(evt);
            }
        });

        pnlIngreseRutGarante.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE N°", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel30.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel30.setText("NÚMERO CDP");

        txtNumAprobCDP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtNumAprobCDPActionPerformed(evt);
            }
        });

        btnBuscarPorNumero.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarPorNumero.setText("BUSCAR");
        btnBuscarPorNumero.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarPorNumeroActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlIngreseRutGaranteLayout = new javax.swing.GroupLayout(pnlIngreseRutGarante);
        pnlIngreseRutGarante.setLayout(pnlIngreseRutGaranteLayout);
        pnlIngreseRutGaranteLayout.setHorizontalGroup(
            pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGaranteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel30)
                .addGap(18, 18, 18)
                .addGroup(pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtNumAprobCDP)
                    .addComponent(btnBuscarPorNumero, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(52, Short.MAX_VALUE))
        );
        pnlIngreseRutGaranteLayout.setVerticalGroup(
            pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlIngreseRutGaranteLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlIngreseRutGaranteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel30)
                    .addComponent(txtNumAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarPorNumero)
                .addContainerGap())
        );

        buttonGroup1.add(chkNumAprobCDP);
        chkNumAprobCDP.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkNumAprobCDP.setText("BUSCAR POR NÚMERO CDP");
        chkNumAprobCDP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkNumAprobCDPActionPerformed(evt);
            }
        });

        pnlIngreseRutGarante1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE N° FOLIO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel31.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel31.setText("N° FOLIO");

        txtFolioAprobCDP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtFolioAprobCDPActionPerformed(evt);
            }
        });

        btnBuscarPorFolio.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarPorFolio.setText("BUSCAR");
        btnBuscarPorFolio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarPorFolioActionPerformed(evt);
            }
        });
        btnBuscarPorFolio.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                btnBuscarPorFolioKeyPressed(evt);
            }
        });

        javax.swing.GroupLayout pnlIngreseRutGarante1Layout = new javax.swing.GroupLayout(pnlIngreseRutGarante1);
        pnlIngreseRutGarante1.setLayout(pnlIngreseRutGarante1Layout);
        pnlIngreseRutGarante1Layout.setHorizontalGroup(
            pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlIngreseRutGarante1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel31)
                .addGap(18, 18, 18)
                .addGroup(pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtFolioAprobCDP)
                    .addComponent(btnBuscarPorFolio, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(47, Short.MAX_VALUE))
        );
        pnlIngreseRutGarante1Layout.setVerticalGroup(
            pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlIngreseRutGarante1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlIngreseRutGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(txtFolioAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarPorFolio)
                .addContainerGap())
        );

        buttonGroup1.add(chkBuscFolioAprobCDP);
        chkBuscFolioAprobCDP.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkBuscFolioAprobCDP.setText("BUSCAR POR N° FOLIO");
        chkBuscFolioAprobCDP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkBuscFolioAprobCDPActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel5Layout.createSequentialGroup()
                        .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(0, 145, Short.MAX_VALUE)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pnlIngreseRutGarante1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(chkBuscFolioAprobCDP))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pnlIngreseRutGarante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(chkNumAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(148, 148, 148))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(btnMenuAprobCDP)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(chkNumAprobCDP)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(pnlIngreseRutGarante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(chkBuscFolioAprobCDP)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(pnlIngreseRutGarante1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 96, Short.MAX_VALUE)
                .addComponent(btnMenuAprobCDP)
                .addGap(84, 84, 84))
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 831, Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 461, Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("INFO. GARANTE", jPanel1);

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "CONFIRMACIÓN DATOS GARANTÍA CDP", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ADJUNTAR ARCHIVO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblArchivo.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblArchivo.setText("VER");

        btnExaminarAprobCDP.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnExaminarAprobCDP.setText("VER ARCHIVO");
        btnExaminarAprobCDP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExaminarAprobCDPActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addGap(67, 67, 67)
                .addComponent(lblArchivo)
                .addGap(18, 18, 18)
                .addComponent(btnExaminarAprobCDP)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblArchivo)
                    .addComponent(btnExaminarAprobCDP))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel4.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel4.setText("SUCURSAL");

        jLabel5.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel5.setText("FECHA CREACIÓN");

        jLabel6.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel6.setText("FECHA ÚLT. DEBITO");

        jLabel13.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel13.setText("FECHA MODIFICA.");

        jLabel12.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel12.setText("FECHA ÚLT. TASACIÓN");

        jLabel11.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel11.setText("MONEDA");

        txtFechUltTasAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltTasAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltTasAprobCDP.setEnabled(false);

        txtFechModiAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtFechModiAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechModiAprobCDP.setEnabled(false);

        txtMonedaAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtMonedaAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtMonedaAprobCDP.setEnabled(false);

        txtFechUltDebAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltDebAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltDebAprobCDP.setEnabled(false);

        txtFechCreaAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtFechCreaAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechCreaAprobCDP.setEnabled(false);

        txtSucursalAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtSucursalAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtSucursalAprobCDP.setEnabled(false);

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(txtSucursalAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(txtFechCreaAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(txtFechUltDebAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel14Layout.createSequentialGroup()
                        .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel12)
                            .addComponent(jLabel13)
                            .addComponent(jLabel11))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(txtFechUltTasAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtFechModiAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtMonedaAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(txtSucursalAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(txtFechCreaAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(txtFechUltDebAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(txtMonedaAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(txtFechUltTasAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(txtFechModiAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(14, Short.MAX_VALUE))
        );

        jLabel7.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel7.setText("TIPO GARANTÍA");

        jLabel8.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel8.setText("FECHA EXTINCIÓN");

        jLabel9.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel9.setText("FECHA ÚLT. REVAL.");

        jLabel10.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel10.setText("FECHA ÚLT. CRÉDITO");

        txtFechExtAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtFechExtAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechExtAprobCDP.setEnabled(false);

        txtTpoGtiaAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtTpoGtiaAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtTpoGtiaAprobCDP.setEnabled(false);

        txtFechUltRevAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltRevAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltRevAprobCDP.setEnabled(false);

        txtFechUltCredAprobCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtFechUltCredAprobCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtFechUltCredAprobCDP.setEnabled(false);

        jLabel16.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel16.setText("MONTO INICIAL");

        txtMontoInicialCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtMontoInicialCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtMontoInicialCDP.setEnabled(false);

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel10)
                    .addComponent(jLabel9)
                    .addComponent(jLabel8)
                    .addComponent(jLabel7)
                    .addComponent(jLabel16))
                .addGap(18, 18, 18)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtMontoInicialCDP)
                    .addComponent(txtTpoGtiaAprobCDP, javax.swing.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE)
                    .addComponent(txtFechExtAprobCDP)
                    .addComponent(txtFechUltRevAprobCDP)
                    .addComponent(txtFechUltCredAprobCDP))
                .addContainerGap())
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel15Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(txtTpoGtiaAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(txtFechExtAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(txtFechUltRevAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(txtFechUltCredAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(txtMontoInicialCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 107, Short.MAX_VALUE)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(121, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(75, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 831, Short.MAX_VALUE)
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                    .addContainerGap(20, Short.MAX_VALUE)
                    .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(20, Short.MAX_VALUE)))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 462, Short.MAX_VALUE)
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );

        jTabbedPane1.addTab("INFORMACIÓN GARANTÍA", jPanel3);

        pnlDescripGarantia.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DESCRIPCIÓN GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtDescripcionGarCDP.setBackground(new java.awt.Color(255, 255, 102));
        txtDescripcionGarCDP.setColumns(20);
        txtDescripcionGarCDP.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtDescripcionGarCDP.setRows(5);
        txtDescripcionGarCDP.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtDescripcionGarCDP.setEnabled(false);
        jScrollPane4.setViewportView(txtDescripcionGarCDP);

        lblDescripcion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDescripcion.setText("DESCRIPCIÓN");

        jLabel14.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel14.setText("ESTADO ACTUAL :");

        jLabel15.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel15.setText("COMENTARIO APROVACION :");

        lblEstadoActual.setFont(new java.awt.Font("Century Gothic", 1, 12)); // NOI18N

        txtComentarioApro.setColumns(20);
        txtComentarioApro.setRows(5);
        jScrollPane1.setViewportView(txtComentarioApro);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jLabel14)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblEstadoActual))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(13, Short.MAX_VALUE))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(lblEstadoActual))
                .addGap(11, 11, 11)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel15)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(18, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout pnlDescripGarantiaLayout = new javax.swing.GroupLayout(pnlDescripGarantia);
        pnlDescripGarantia.setLayout(pnlDescripGarantiaLayout);
        pnlDescripGarantiaLayout.setHorizontalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDescripGarantiaLayout.createSequentialGroup()
                .addGap(70, 70, 70)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDescripGarantiaLayout.createSequentialGroup()
                        .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 296, Short.MAX_VALUE))
                    .addGroup(pnlDescripGarantiaLayout.createSequentialGroup()
                        .addComponent(lblDescripcion)
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane4)))
                .addContainerGap())
        );
        pnlDescripGarantiaLayout.setVerticalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDescripGarantiaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(233, 233, 233))
        );

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.PREFERRED_SIZE, 359, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(108, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 831, Short.MAX_VALUE)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGap(0, 17, Short.MAX_VALUE)
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 17, Short.MAX_VALUE)))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 467, Short.MAX_VALUE)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)))
        );

        jTabbedPane1.addTab("DESCRIP. GARANTÍA", jPanel2);

        pnlEstadoGarantia1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ESTADO GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        lblEstrado1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblEstrado1.setText("ESTADO");

        cmbEstadoAprobCDP.setEditable(true);
        cmbEstadoAprobCDP.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        javax.swing.GroupLayout pnlEstadoGarantia1Layout = new javax.swing.GroupLayout(pnlEstadoGarantia1);
        pnlEstadoGarantia1.setLayout(pnlEstadoGarantia1Layout);
        pnlEstadoGarantia1Layout.setHorizontalGroup(
            pnlEstadoGarantia1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEstadoGarantia1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(lblEstrado1)
                .addGap(80, 80, 80)
                .addComponent(cmbEstadoAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(364, 364, 364))
        );
        pnlEstadoGarantia1Layout.setVerticalGroup(
            pnlEstadoGarantia1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlEstadoGarantia1Layout.createSequentialGroup()
                .addContainerGap(27, Short.MAX_VALUE)
                .addGroup(pnlEstadoGarantia1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEstrado1)
                    .addComponent(cmbEstadoAprobCDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(78, 78, 78))
        );

        btnMenuPrincAprobCDP.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuPrincAprobCDP.setText("MENÚ PRINCIPAL >>");
        btnMenuPrincAprobCDP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincAprobCDPActionPerformed(evt);
            }
        });

        btnAceptar.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnAceptar.setText("ACEPTAR");
        btnAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAceptarActionPerformed(evt);
            }
        });

        pnlDescripGarantia2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DESCRIPCIÓN GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtOtroComentarioAprobCDP2.setColumns(20);
        txtOtroComentarioAprobCDP2.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtOtroComentarioAprobCDP2.setRows(5);
        txtOtroComentarioAprobCDP2.setToolTipText("");
        jScrollPane6.setViewportView(txtOtroComentarioAprobCDP2);

        lblDescripcion2.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDescripcion2.setText("COMENTARIO");

        javax.swing.GroupLayout pnlDescripGarantia2Layout = new javax.swing.GroupLayout(pnlDescripGarantia2);
        pnlDescripGarantia2.setLayout(pnlDescripGarantia2Layout);
        pnlDescripGarantia2Layout.setHorizontalGroup(
            pnlDescripGarantia2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDescripGarantia2Layout.createSequentialGroup()
                .addContainerGap(68, Short.MAX_VALUE)
                .addComponent(lblDescripcion2)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 614, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        pnlDescripGarantia2Layout.setVerticalGroup(
            pnlDescripGarantia2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDescripGarantia2Layout.createSequentialGroup()
                .addContainerGap(28, Short.MAX_VALUE)
                .addGroup(pnlDescripGarantia2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion2)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGap(350, 350, 350)
                        .addComponent(btnAceptar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnMenuPrincAprobCDP)
                        .addGap(27, 27, 27))
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(pnlDescripGarantia2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(pnlEstadoGarantia1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addContainerGap())))
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlEstadoGarantia1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(pnlDescripGarantia2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(63, 63, 63)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnMenuPrincAprobCDP)
                    .addComponent(btnAceptar))
                .addContainerGap(31, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 24, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("SÍ/NO", jPanel4);

        jPanel17.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE NÚMERO CDP", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarCDPImprimir.setText("BUSCAR");
        btnBuscarCDPImprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarCDPImprimirActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap(39, Short.MAX_VALUE)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()
                        .addComponent(btnBuscarCDPImprimir)
                        .addGap(54, 54, 54))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()
                        .addComponent(txtBuscarCDPImprimir, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(32, 32, 32))))
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(txtBuscarCDPImprimir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)
                .addComponent(btnBuscarCDPImprimir))
        );

        jPanel18.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ÁREA DE IMPRESIÓN", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        tbSalidaCDPImprimir.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tbSalidaCDPImprimir.setEnabled(false);
        tbSalidaCDPImprimir.setRowHeight(20);
        jScrollPane2.setViewportView(tbSalidaCDPImprimir);

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 710, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE)
                .addContainerGap())
        );

        btnCDPImprimir.setText("IMPRIMIR");
        btnCDPImprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCDPImprimirActionPerformed(evt);
            }
        });

        btnMenuPrincipalCDP.setText("MENÚ PRINCIPAL");
        btnMenuPrincipalCDP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincipalCDPActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addGap(30, 30, 30)
                        .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addGap(268, 268, 268)
                        .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(39, Short.MAX_VALUE))
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addGap(348, 348, 348)
                .addComponent(btnCDPImprimir)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnMenuPrincipalCDP)
                .addGap(77, 77, 77))
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnCDPImprimir)
                    .addComponent(btnMenuPrincipalCDP))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("IMPRIMIR", jPanel11);

        btnExporAprobCDP.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnExporAprobCDP.setText("EXPORTAR A EXCEL");
        btnExporAprobCDP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExporAprobCDPActionPerformed(evt);
            }
        });

        jLabel3.setText("MENÚ PRINCIPAL\\APROBACIÓN GARANTÍA CDP");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(118, 118, 118)
                                .addComponent(jLabel1)
                                .addGap(0, 0, Short.MAX_VALUE))
                            .addGroup(layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(btnExporAprobCDP)))
                        .addGap(33, 33, 33))
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel3)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 836, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(9, 9, 9)
                        .addComponent(btnExporAprobCDP))
                    .addComponent(jLabel2)
                    .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(18, 18, 18)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 491, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        setSize(new java.awt.Dimension(852, 624));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void btnExaminarAprobCDPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExaminarAprobCDPActionPerformed
         String archivo = aproGaraCdp.getAdjuntar_cdp();
           if(!archivo.equals("")){  
         File file = new File(archivo);
        try {
            Desktop.getDesktop().open(file);
        } catch (IOException ex) {
            javax.swing.JOptionPane.showMessageDialog(this, "Problema al abrir archivo");
        }
           }else{
           javax.swing.JOptionPane.showMessageDialog(this, "No tiene archivo adjunto");
           } 
    }//GEN-LAST:event_btnExaminarAprobCDPActionPerformed

    private void btnMenuAprobCDPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuAprobCDPActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        AprobacionGarantiaCdp.this.dispose();
    }//GEN-LAST:event_btnMenuAprobCDPActionPerformed

    private void btnBuscarPorFolioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarPorFolioActionPerformed
        this.txtNumAprobCDP.setText("");
       if (!this.txtFolioAprobCDP.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtFolioAprobCDP.setText("");
        }
       else{
         
        int folio=Integer.parseInt(this.txtFolioAprobCDP.getText().trim());
        aproGaraCdp = reg.buscarPorFolioCDP(folio);
        
        if(aproGaraCdp.getFolio_cdp() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Garantia no Encontrada");
            txtFolioAprobCDP.setText("");
            limpiar();
            this.btnAceptar.setVisible(false);
         
        }
        else
        {
            
            
            this.txtRutGarAprobCDP.setText(aproGaraCdp.getRut_gara_cdp());
                this.txtNombreGarAprobCDP.setText(aproGaraCdp.getNombre_cdp());
                this.txtApellPatAprobCDP.setText(aproGaraCdp.getApell_paterno_cdp());
                this.txtApellMatGarAprobCDP.setText(aproGaraCdp.getApell_materno_cdp());
//                this.txtFolioGarAprobCDP.setText(String.valueOf(aproGaraCdp.getFolio_cdp()));
                this.txtComentarioApro.setText(aproGaraCdp.getComent_apro_cdp());
                this.txtSucursalAprobCDP.setText(aproGaraCdp.getSucu_cdp());
                String fechaCreacion = new SimpleDateFormat("dd/MM/yyyy").format(aproGaraCdp.getFech_crea_cdp().getTime());
                this.txtFechCreaAprobCDP.setText(fechaCreacion);
                this.txtFechUltDebAprobCDP.setText(String.valueOf(aproGaraCdp.getFech_ult_deb_cdp()));
                this.txtMonedaAprobCDP.setText(aproGaraCdp.getNom_moneda_cdp());
                this.txtFechUltTasAprobCDP.setText(String.valueOf(aproGaraCdp.getFech_ult_tasa_cdp()));
                this.txtFechModiAprobCDP.setText(String.valueOf(aproGaraCdp.getFech_modif_cdp()));
                this.txtTpoGtiaAprobCDP.setText(String.valueOf(aproGaraCdp.getTipo_garantia_cdp()));
                String fechaVen = new SimpleDateFormat("dd/MM/yyyy").format(aproGaraCdp.getFech_extin_cdp().getTime());
                this.txtFechExtAprobCDP.setText(fechaVen);
                this.txtFechUltRevAprobCDP.setText(String.valueOf(aproGaraCdp.getFech_ult_reval_cdp()));
                this.txtFechUltCredAprobCDP.setText(String.valueOf(aproGaraCdp.getFech_ult_cred_cdp()));
                this.txtMontoInicialCDP.setText(String.valueOf(aproGaraCdp.getMonto_inicial()));
        if(aproGaraCdp.getEstado_cdp() == null && aproGaraCdp.getComent_apro_cdp() == null){
           this.lblEstadoActual.setText("Aun no Aprobada");
           this.txtComentarioApro.enable(false);
           this.txtComentarioApro.setText(null);
           this.cmbEstadoAprobCDP.enable(true);
           this.cmbEstadoAprobCDP.setSelectedItem("Seleccione");
            this.txtOtroComentarioAprobCDP2.enable(true);
            this.btnAceptar.setVisible(true);
            javax.swing.JOptionPane.showMessageDialog(this, "Aun no ha sido Aprobado");
        }
        else{
            this.lblEstadoActual.setText(aproGaraCdp.getEstado_cdp().toString());
            this.txtComentarioApro.setText(aproGaraCdp.getComent_apro_cdp().toString());
            
            this.cmbEstadoAprobCDP.setSelectedItem(aproGaraCdp.getEstado_cdp());
            if(aproGaraCdp.getEstado_cdp().equals("Rechazada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Garantia Rechazada");
            }
            else{
            javax.swing.JOptionPane.showMessageDialog(this, "Garantia Aprobada");
            }
            this.txtOtroComentarioAprobCDP2.enable(false);
            this.btnAceptar.setVisible(false);
        }
        }}
    }//GEN-LAST:event_btnBuscarPorFolioActionPerformed

    private void btnAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAceptarActionPerformed
        aproGaraCdp.setEstado_cdp(this.cmbEstadoAprobCDP.getSelectedItem().toString());
        aproGaraCdp.setComent_apro_cdp(this.txtOtroComentarioAprobCDP2.getText());
        int respuesta = 5;
        if(aproGaraCdp.getEstado_cdp().equals("Aprobada"))
        {
            respuesta = javax.swing.JOptionPane.showConfirmDialog(null, "Esta seguro de aprobar esta garantia?", "Aprobacion", JOptionPane.OK_CANCEL_OPTION);
        }
        if(aproGaraCdp.getEstado_cdp().equals("Rechazada"))
        {
            respuesta = javax.swing.JOptionPane.showConfirmDialog(null, "Esta seguro de rechazar esta garantia?", "Rechazo", JOptionPane.OK_CANCEL_OPTION);
        }       
        if(respuesta == 0)
        {
            reg.estadoGarantiaCdp(aproGaraCdp, user);
            javax.swing.JOptionPane.showMessageDialog(this, "Aprobacion realizada correctamente ");
            MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
            venMenuPrincipal.setVisible(true);
            AprobacionGarantiaCdp.this.dispose();
        }
        
        
        
        
        
        
        
        
        
        
        
    }//GEN-LAST:event_btnAceptarActionPerformed

    private void chkBuscFolioAprobCDPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkBuscFolioAprobCDPActionPerformed
        if(this.chkBuscFolioAprobCDP.isSelected())
        {
            pnlIngreseRutGarante1.setVisible(true);
            pnlIngreseRutGarante.setVisible(false);
        }else{
            pnlIngreseRutGarante1.setVisible(false);
        }
    }//GEN-LAST:event_chkBuscFolioAprobCDPActionPerformed

    private void chkNumAprobCDPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkNumAprobCDPActionPerformed
        if(this.chkNumAprobCDP.isSelected())
        {
            pnlIngreseRutGarante.setVisible(true);
            pnlIngreseRutGarante1.setVisible(false);
        }else{
            pnlIngreseRutGarante.setVisible(false);
        }
    }//GEN-LAST:event_chkNumAprobCDPActionPerformed

    private void btnBuscarPorFolioKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_btnBuscarPorFolioKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnBuscarPorFolioKeyPressed

    private void btnBuscarPorNumeroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarPorNumeroActionPerformed
        this.txtFolioAprobCDP.setText("");
        aproGaraCdp = reg.buscarPorNum(Integer.parseInt(this.txtNumAprobCDP.getText().trim()));
        
        if(aproGaraCdp.getFolio_cdp() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Garantia no Encontrada");
            txtFolioAprobCDP.setText("");
            limpiar();
             this.btnAceptar.setVisible(false);
        }
        else
        {
            
            
                this.txtRutGarAprobCDP.setText(aproGaraCdp.getRut_gara_cdp());
                this.txtNombreGarAprobCDP.setText(aproGaraCdp.getNombre_cdp());
                this.txtApellPatAprobCDP.setText(aproGaraCdp.getApell_paterno_cdp());
                this.txtApellMatGarAprobCDP.setText(aproGaraCdp.getApell_materno_cdp());
                this.txtSucursalAprobCDP.setText(aproGaraCdp.getSucu_cdp());
                String fechaCreacion = new SimpleDateFormat("dd/MM/yyyy").format(aproGaraCdp.getFech_crea_cdp().getTime());
                this.txtFechCreaAprobCDP.setText(fechaCreacion);
                this.txtFechUltDebAprobCDP.setText(String.valueOf(aproGaraCdp.getFech_ult_deb_cdp()));
                this.txtMonedaAprobCDP.setText(aproGaraCdp.getNom_moneda_cdp());
                this.txtFechUltTasAprobCDP.setText(String.valueOf(aproGaraCdp.getFech_ult_tasa_cdp()));
                this.txtFechModiAprobCDP.setText(String.valueOf(aproGaraCdp.getFech_modif_cdp()));
                this.txtTpoGtiaAprobCDP.setText(String.valueOf(aproGaraCdp.getTipo_garantia_cdp()));
                String fechaVen = new SimpleDateFormat("dd/MM/yyyy").format(aproGaraCdp.getFech_extin_cdp().getTime());
                this.txtFechExtAprobCDP.setText(fechaVen);
                this.txtFechUltRevAprobCDP.setText(String.valueOf(aproGaraCdp.getFech_ult_reval_cdp()));
                this.txtFechUltCredAprobCDP.setText(String.valueOf(aproGaraCdp.getFech_ult_cred_cdp()));
                this.txtMontoInicialCDP.setText(String.valueOf(aproGaraCdp.getMonto_inicial()));
        if(aproGaraCdp.getEstado_cdp() == null && aproGaraCdp.getComent_apro_cdp() == null){
           this.lblEstadoActual.setText("Aun no Aprobada");
           this.txtComentarioApro.enable(false);
           this.txtComentarioApro.setText(null);
           this.cmbEstadoAprobCDP.enable(true);
           this.cmbEstadoAprobCDP.setSelectedItem("Seleccione");
            this.txtOtroComentarioAprobCDP2.enable(true);
            this.btnAceptar.setVisible(true);
            javax.swing.JOptionPane.showMessageDialog(this, "Aun no ha sido Aprobado");
        }
        else{
            this.lblEstadoActual.setText(aproGaraCdp.getEstado_cdp().toString());
            this.txtComentarioApro.setText(aproGaraCdp.getComent_apro_cdp().toString());
           this.cmbEstadoAprobCDP.setSelectedItem(aproGaraCdp.getEstado_cdp().toString());
            if(aproGaraCdp.getEstado_cdp().equals("Rechazada"))
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Garantia Rechazada");
            }
            else{
            javax.swing.JOptionPane.showMessageDialog(this, "Garantia Aprobada");
            }
            this.txtOtroComentarioAprobCDP2.enable(false);
            this.btnAceptar.setVisible(false);
        }}
    }//GEN-LAST:event_btnBuscarPorNumeroActionPerformed

    private void btnMenuPrincAprobCDPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincAprobCDPActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        AprobacionGarantiaCdp.this.dispose();
    }//GEN-LAST:event_btnMenuPrincAprobCDPActionPerformed

    private void btnExporAprobCDPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExporAprobCDPActionPerformed
        if(!this.txtFolioAprobCDP.getText().equals("")){
        int folio = Integer.parseInt(this.txtFolioAprobCDP.getText().trim());
        reg.exportarGarantiaCDPFolio(folio);
        javax.swing.JOptionPane.showMessageDialog(this, "Exportación realizada con exito");
        File file = new File("C:/export_aprobacion_garantia_CDP.csv");
        try {
            Desktop.getDesktop().open(file);
        } catch (IOException ex) {
            Logger.getLogger(IngresoGarante.class.getName()).log(Level.SEVERE, null, ex);
        }
        }
         if(!this.txtNumAprobCDP.getText().equals("")){
        int numero = Integer.parseInt(this.txtNumAprobCDP.getText().trim());
        reg.exportarGarantiaCDPNumero(numero);
        javax.swing.JOptionPane.showMessageDialog(this, "Exportación realizada con exito");
        File file = new File("C:/export_aprobacion_garantia_CDP.csv");
        try {
            Desktop.getDesktop().open(file);
        } catch (IOException ex) {
            Logger.getLogger(IngresoGarante.class.getName()).log(Level.SEVERE, null, ex);
        }
        }
    }//GEN-LAST:event_btnExporAprobCDPActionPerformed

    private void txtFolioAprobCDPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtFolioAprobCDPActionPerformed
         if (!this.txtFolioAprobCDP.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtFolioAprobCDP.setText("");
        }
    }//GEN-LAST:event_txtFolioAprobCDPActionPerformed

    private void txtNumAprobCDPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtNumAprobCDPActionPerformed
         if (!this.txtNumAprobCDP.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtNumAprobCDP.setText("");
        }
    }//GEN-LAST:event_txtNumAprobCDPActionPerformed

    private void btnBuscarCDPImprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarCDPImprimirActionPerformed
       try
       {
           ArrayList<garantiaCdpOtrosDTO> salida = reg.ListarPorCdp(Integer.parseInt(this.txtBuscarCDPImprimir.getText().trim()));
           if(salida.isEmpty())
           {
               
               this.txtBuscarCDPImprimir.setText(null);
               DefaultTableModel modelo = (DefaultTableModel)this.tbSalidaCDPImprimir.getModel();
               modelo.setNumRows(0);
               javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
           }
           else
           {
               
               DefaultTableModel modelo = (DefaultTableModel)this.tbSalidaCDPImprimir.getModel();
               modelo.setColumnCount(0);
               
               if(modelo.getColumnCount() < 1)
                {
                    
                    Object[] arr1 ={"Rut: ","Nombre: ", "Calle: ", "Garantía: ", "Número identificatorio CDP: ",
                        "Número de folio: ", "Monto incial: ", "Creación de la garantía: ", "Sucursal: ",
                        "Fecha último debito: ","Moneda: ","Fecha última tasación","Tipo garantía: ","Fecha vencimiento: ",
                        "Fecha último revaluo: ","Fecha último credito: ","Estado de la garantía: ","Fecha aprobado/Rechazado: ", 
                        "Usuario: " };
                    modelo.addColumn("Concepto", arr1);
                    
                    for(garantiaCdpOtrosDTO c: salida)
                {
                    Object[] arr2 ={
                                   c.getRut_gara_cdp(),
                                   c.getNombre_cdp() + "  " + c.getApell_paterno_cdp() + "  " + c.getApell_materno_cdp(),
                                   c.getCalle_cdp() + "  " + c.getNumero_calle_cdp(),
                                   c.getNom_garantia_cdp(),
                                   c.getNum_cdp(),
                                   c.getFolio_cdp(),
                                   c.getMonto_inicial(),
                                   c.getFech_crea_cdp(),
                                   c.getSucu_cdp(),
                                   c.getFech_ult_deb_cdp(),
                                   c.getNom_moneda_cdp(),
                                   c.getFech_ult_tasa_cdp(),
                                   c.getTipo_garantia_cdp(),
                                   c.getFech_extin_cdp(),
                                   c.getFech_ult_reval_cdp(),
                                   c.getFech_ult_cred_cdp(),
                                   c.getEstado_cdp(),
                                   c.getFech_crea_cdp(),
                                   c.getNombre_usuario()
                    };
                     
                    modelo.addColumn("Contenido",arr2);    
                }
                    
                    Object[] arr3 = {" "," "," "," "," "," "," "," "," "," ",
                                     " "," "," "," "," "," "," "," "," "};
                    modelo.addColumn("Observaciones",arr3);
                    
                }
    
           }
       }
       catch(Exception e)
       {
           e.getMessage();
       }
    }//GEN-LAST:event_btnBuscarCDPImprimirActionPerformed

    private void btnCDPImprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCDPImprimirActionPerformed
        try {
            
        int fila= 0;
  
        List Resultados = new ArrayList();
        ComprobanteGeneralDTO tipo;
        Resultados.clear();
        
        for(fila = 0; fila< tbSalidaCDPImprimir.getRowCount(); fila++)
        {
            
           tipo = new ComprobanteGeneralDTO(String.valueOf(tbSalidaCDPImprimir.getValueAt(fila, 0)),
                    " " + String.valueOf(tbSalidaCDPImprimir.getValueAt(fila, 1)), " " + String.valueOf(tbSalidaCDPImprimir.getValueAt(fila, 2))  + "\n");
           Resultados.add(tipo);

        }
        
            String reportSource = "C:\\Users\\SoftGroup\\Documents\\NetBeansProjects\\trunk\\AppGarantias\\build\\classes\\Reporte\\ComprobanteGeneralGarantias.jrxml";

            JasperReport jr = JasperCompileManager.compileReport(reportSource);
            
            
            JFrame reporte = new JFrame();
            reporte.setSize(900, 700);
            reporte.setLocationRelativeTo(null);
            reporte.setTitle("IMPRESIÓN");
            String fechaImpresion = String.valueOf(Fechas.FechaSistema());
            
            Map<String, Object> map = new HashMap<String, Object>();
            
            map.put("Titulo", "Sistema Gestión de Garantías Bancarias");
            map.put("fecha", fechaImpresion);
            map.put("nombreBanco", "Banco xxxxxx");
            map.put("subtitulo", "Comprobante Aprobación CDP");
            map.put("timbre", "Timbre");
            map.put("fechaUsuario","Fecha");
            map.put("firma","Firma");
            
            
            JRBeanCollectionDataSource coleccion = new JRBeanCollectionDataSource(Resultados);
            JasperPrint jp = JasperFillManager.fillReport(jr, map, coleccion);
            JRViewer jv = new JRViewer(jp);
            reporte.getContentPane().add(jv);
            reporte.setVisible(true);
            
            
            
        } catch (JRException e) {
            e.printStackTrace();
            Logger.getLogger(AprobacionGarantiaCdp.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_btnCDPImprimirActionPerformed

    private void btnMenuPrincipalCDPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincipalCDPActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        AprobacionGarantiaCdp.this.dispose();
    }//GEN-LAST:event_btnMenuPrincipalCDPActionPerformed

    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /*
//         * Set the Nimbus look and feel
//         */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /*
//         * If Nimbus (introduced in Java SE 6) is not available, stay with the
//         * default look and feel. For details see
//         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    breAprobacionGarantiaCdp}
//            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(AprobacionGarantiaCdp2.class.getName()).log(javAprobacionGarantiaCdpEVERE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(AprobacionGarantiaCdp2.class.getName()).log(javAprobacionGarantiaCdpEVERE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(AprobacionGarantiaCdp2.class.getName()).log(java.util.logging.Level.AprobacionGarantiaCdp       } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(AprobacionGarantiaCdp2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /*
//         * Create and display the AprobacionGarantiaCdp       java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new AprobacionGarantiaCdp2().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAceptar;
    private javax.swing.JButton btnBuscarCDPImprimir;
    private javax.swing.JButton btnBuscarPorFolio;
    private javax.swing.JButton btnBuscarPorNumero;
    private javax.swing.JButton btnCDPImprimir;
    private javax.swing.JButton btnExaminarAprobCDP;
    private javax.swing.JButton btnExporAprobCDP;
    private javax.swing.JButton btnMenuAprobCDP;
    private javax.swing.JButton btnMenuPrincAprobCDP;
    private javax.swing.JButton btnMenuPrincipalCDP;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JCheckBox chkBuscFolioAprobCDP;
    private javax.swing.JCheckBox chkNumAprobCDP;
    private javax.swing.JComboBox cmbEstadoAprobCDP;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JLabel lblArchivo;
    private javax.swing.JLabel lblDescripcion;
    private javax.swing.JLabel lblDescripcion2;
    private javax.swing.JLabel lblEstadoActual;
    private javax.swing.JLabel lblEstrado1;
    private javax.swing.JPanel pnlDatosPersoGara;
    private javax.swing.JPanel pnlDescripGarantia;
    private javax.swing.JPanel pnlDescripGarantia2;
    private javax.swing.JPanel pnlEstadoGarantia1;
    private javax.swing.JPanel pnlIngreseRutGarante;
    private javax.swing.JPanel pnlIngreseRutGarante1;
    private javax.swing.JTable tbSalidaCDPImprimir;
    private javax.swing.JTextField txtApellMatGarAprobCDP;
    private javax.swing.JTextField txtApellPatAprobCDP;
    private javax.swing.JTextField txtBuscarCDPImprimir;
    private javax.swing.JTextArea txtComentarioApro;
    private javax.swing.JTextArea txtDescripcionGarCDP;
    private javax.swing.JTextField txtFechCreaAprobCDP;
    private javax.swing.JTextField txtFechExtAprobCDP;
    private javax.swing.JTextField txtFechModiAprobCDP;
    private javax.swing.JTextField txtFechUltCredAprobCDP;
    private javax.swing.JTextField txtFechUltDebAprobCDP;
    private javax.swing.JTextField txtFechUltRevAprobCDP;
    private javax.swing.JTextField txtFechUltTasAprobCDP;
    private javax.swing.JTextField txtFolioAprobCDP;
    private javax.swing.JTextField txtMonedaAprobCDP;
    private javax.swing.JTextField txtMontoInicialCDP;
    private javax.swing.JTextField txtNombreGarAprobCDP;
    private javax.swing.JTextField txtNumAprobCDP;
    private javax.swing.JTextArea txtOtroComentarioAprobCDP2;
    private javax.swing.JTextField txtRutGarAprobCDP;
    private javax.swing.JTextField txtSucursalAprobCDP;
    private javax.swing.JTextField txtTpoGtiaAprobCDP;
    // End of variables declaration//GEN-END:variables

    

    private void limpiar() {
        
                this.txtRutGarAprobCDP.setText(null);
                this.txtNombreGarAprobCDP.setText(null);
                this.txtApellPatAprobCDP.setText(null);
                this.txtApellMatGarAprobCDP.setText(null);
//              this.txtFolioGarAprobCDP.setText(null);
                this.txtSucursalAprobCDP.setText(null);
                this.txtFechCreaAprobCDP.setText(null);
                this.txtFechUltDebAprobCDP.setText(null);
                this.txtMonedaAprobCDP.setText(null);
                this.txtFechUltTasAprobCDP.setText(null);
                this.txtFechModiAprobCDP.setText(null);
                this.txtTpoGtiaAprobCDP.setText(null);
                this.txtFechExtAprobCDP.setText(null);
                this.txtFechUltRevAprobCDP.setText(null);
                this.txtFechUltCredAprobCDP.setText(null);
                this.cmbEstadoAprobCDP.setSelectedItem("Seleccione");
                this.txtOtroComentarioAprobCDP2.setText(null);
                this.lblEstadoActual.setText(null);
                this.txtComentarioApro.setText(null);
                this.txtMontoInicialCDP.setText(null);
    }
}
